// 配置路由
// 引入
import Vue from 'vue';
import VueRouter from 'vue-router';
// 使用插件
Vue.use(VueRouter);

// 引入路由组件
import Home from '@/pages/Home'
import Login from '@/pages/Login'
import Register from '@/pages/Register'
import WenChuang from '@/pages/wenchuang'
import Interaction from '@/pages/Interaction'
import Green from '@/pages/Green'
import Data from '@/pages/Data'
import Government from '@/pages/Government'
import Agriculture from '@/pages/Agriculture'

import More from '@/pages/Interaction/view/More.vue'
import Detail from '@/pages/Interaction/view/Detail.vue'
import WcMore from '@/pages/wenchuang/view/More.vue';
import Resources from '@/pages/Agriculture/view/Resources.vue'
import Case from '@/pages/Agriculture/view/Case.vue';
import New from '@/pages/Data/view/New.vue';


// 配置路由
export default new VueRouter({
    routes:[
        {
            path:'/home',
            component:Home,
            meta:{show:true},
        },
        // 重定向
        {
            path:'/',
            redirect:'/login',
            meta:{show:true}
        },
        {
            path:'/login',
            component:Login,
            meta:{show:false}
        },
        {
            path:'/register',
            component:Register,
            meta:{show:false}
        },
        {
            path:'/wenchuang',
            component:WenChuang
        },
        {
            path:'/interaction',
            component:Interaction,
        },
        {
            path:'/detail',
            component:Detail
        },
        {
            path:'/more',
            component:More 
        },
        {
            path:'/wcmore',
            component:WcMore 
        },
        {
            path:'/green',
            component:Green
        },
        {
            path:'/data',
            component:Data
        },
        {
            path:'/government',
            component:Government
        },
        {
            path:'/agriculture',
            component:Agriculture
        },
        {
            path:'/resources',
            component:Resources
        },
        {
            path:'/case',
            component:Case
        },
        {
            path:'/new',
            component:New
        },
    ]
})